package com.dd.cloud.user.req.education;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class PatientEducationArticleUpdateFrom {

    /**
     * 主键id
     */
    @NotNull(message = "患教文章id不能为空")
    private Integer articleId;


    /**
     * 名称
     */
    @Length(max = 50)
    @NotBlank(message = "名称不能为空")
    private String title;

    /**
     * 科室
     */
    @NotBlank(message = "科室不能为空")
    private String department;

    /**
     * 备注
     */
    @Length(max = 512)
    private String remark;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空")
    private String content;

    /**
     * 类型
     */
    @NotNull(message = "标签id不能为空")
    private Integer tagId;

    /**
     * 路径不能为空
     */
    @NotBlank(message = "路径不能为空")
    private String url;

    /**
     * 状态 1.保存 2.草稿
     */
    @NotNull(message = "状态不能为空")
    private Integer status;


}
